//
//  PartnerViewCell.m
//  Telemedicine
//
//  Created by Trong Ton on 6/30/14.
//  Copyright (c) 2014 Trong Ton. All rights reserved.
//

#import "PartnerViewCell.h"
#import "JMImageCache.h"

@implementation PartnerViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        logoPartner = [[UIImageView alloc] initWithFrame:CGRectMake(0, 2, self.bounds.size.width,  84)];
        logoPartner.userInteractionEnabled = NO;
        logoPartner.contentMode = UIViewContentModeScaleAspectFit;
        [self.contentView addSubview:logoPartner];
        [logoPartner release];
    }
    return self;
}

- (void)setupCellTableView:(NSDictionary *)partner {
    NSString *logoURl = [partner objectForKey:@"logo_url"];
    [logoPartner setImageWithURL:[NSURL URLWithString:logoURl] placeholder:[UIImage imageNamed:@"comingsoon_demo.jpg"]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
